package com.yunsc.order.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunsc.order.dto.QueryOrderRefundDTO;
import com.yunsc.order.entity.YunscOrderRefundEntity;
import com.yunsc.order.vo.OrderRefundVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 售后单记录表
 * 
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:50
 */
@Mapper
public interface YunscOrderRefundDao extends BaseMapper<YunscOrderRefundEntity> {

    /**
     * 分页查询订单售后记录
     * @param objectPage 分页对象
     * @param query 订单售后查询条件
     * @param storeId 当前门店ID
     * @return 订单售后分页数据
     */
    Page<OrderRefundVO> selectOrderRefundPage(Page<Object> objectPage, @Param("query") QueryOrderRefundDTO query, @Param("storeId") Integer storeId);

    OrderRefundVO selectOrderRefundDetail(@Param("orderRefundId") Integer orderRefundId);

}
